package com.FileClass;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class WriteFIle {
    public static void main(String[] args) throws IOException {
        File file = new File("D:\\read.txt");

        FileWriter fileWriter = new FileWriter(file);

        BufferedWriter writer = new BufferedWriter(fileWriter);

        writer.write("we are family");
        writer.flush();
    }
}
